/*
 * Copyright (c) 2011 Jean-Marc Perronne
 * Ensisa, 12 rue des Freres Lumieres, F-68093 Mulhouse cedex
 * All rights reserved.
 *
 * The copyright of this software is owned by Werner Randelshofer. 
 * You may not use, copy or modify this software, except in  
 * accordance with the license agreement you entered into with  
 * Jean-Marc Perronne. For details see accompanying license terms. 
 */

package fr.uha.ensisa.jmp.drone.ui.cockpit;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

public class SimpleRectDraft implements VideoPanelDraft
{
	public void draw(Graphics2D g2d, BufferedImage videoImage)
	{
		int rWidth = videoImage.getWidth()/3;
		int rHeight = videoImage.getHeight()/3;
		int dx = videoImage.getWidth()/2-(rWidth/2);
		int dy = videoImage.getHeight()/2-(rHeight/2);
		g2d.setColor(Color.CYAN);
		g2d.drawRect(dx,dy, rWidth,rHeight);
	}
}
